package com.sitech.ibnms.c3p.mappers;

import com.sitech.ibnms.c3p.domain.C3pExecNotice;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by liujhc on 9/28.
 */
public interface C3pExecNoticeMapper {
    void insert(@Param("notices") C3pExecNotice... c3pExecNotices);

    void insert(@Param("notices") List<C3pExecNotice> c3pExecNotices);

    List<C3pExecNotice> findByExecTimeout(@Param("beforeTime") Date beforeTime);

    List<C3pExecNotice> findByFireDelay(@Param("beforeTime") long beforeTime, @Param("currentTimeMillis") long currentTimeMillis);
}
